﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MolyMade.Http.DataTypes;
using MolyMade.Http.Enums;

namespace MolyMade.Http.Tester
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {

            Dictionary<string,string> parameters = new Dictionary<string, string>
            {
                ["wd"] = "mdzz"
            }; 
            Headers headers = new Headers()
            {
                Accept = @"	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
                CacheControl = "no - cache",
                KeepAlive = true,
                Host = "www.baidu.com",
                UserAgent = UserAgents.Ie9
            };
            Response r = Requests.Get("http://www.baidu.com", parameters, headers);
            Console.Write(r.Text);
            textBox1.Text = r.Text;
        }
    }
}
